Received: from yvax.byu.edu by maine.et.byu.edu; Wed, 2 Feb 1994 11:16:26 -0700
Return-Path: <ets!dougm@uunet.UU.NET>
Received: from DIRECTORY-DAEMON by yvax.byu.edu (PMDF V4.3-3 #4169)
id <01H8EPB530LS8Y4XVI@yvax.byu.edu>; Wed, 2 Feb 1994 11:15:51 MST
Received: from alaska.et.byu.edu by yvax.byu.edu (PMDF V4.3-3 #4169)
id <01H8EP9Y0OHC8Y4Y08@yvax.byu.edu>; Wed, 2 Feb 1994 11:14:51 MST
Received: from yvax.byu.edu by alaska.et.byu.edu; Wed, 2 Feb 1994 11:14:07 -0700
Received: from DIRECTORY-DAEMON by yvax.byu.edu (PMDF V4.3-3 #4169)
id <01H8EP40OPWG01A367@yvax.byu.edu>; Wed, 2 Feb 1994 11:10:40 MST
Received: from relay2.UU.NET by yvax.byu.edu (PMDF V4.3-3 #4169)
id <01H8EP3RSQSW8Y4XZ8@yvax.byu.edu>; Wed, 2 Feb 1994 11:09:51 MST
Received: from spool.uu.net (via LOCALHOST) by relay2.UU.NET with SMTP
(5.61/UUNET-internet-primary) id AAwbns22704; Wed, 2 Feb 94 13:09:14 -0500
Received: from ets.UUCP by uucp5.uu.net with UUCP/RMAIL (queueing-rmail)
id 130734.25459; Wed, 2 Feb 1994 13:07:34 EST
Received: from mis01b by mis00a (NX5.67d/NX3.0M) id AA06991; Wed,
2 Feb 94 12:49:54 -0500
Received: by (NeXT-1.0 (From Sendmail 5.52)/NX3.0X) id AA05810; Wed,
2 Feb 94 12:45:13 EST
Received: by NeXT.Mailer (1.95)
Received: by NeXT Mailer (1.95)
Date: Wed, 02 Feb 1994 12:45:13 -0500 (EST)
From: Doug McClure <ets!dougm@uunet.UU.NET>
Subject: More class ideas
To: misckit@byu.edu
Message-Id: <9402021749.AA06991@mis00a>
Content-Transfer-Encoding: 7BIT
Status: RO
Here some ideas for a bunch of very useful classes.
MiscThread
This class will be used to handle Mach C Threads. I know I sure don't understand threads, and I'm sure there are others out there who could use a nice class that cleanly handles all of that low level stuff.
MiscProcess
This class will handle running another process from an application in either the foreground or background.
MiscUnix (subclass MiscProcess)
This will be an interface to standard UNIX file commands. Things like chmod, mv, cp, ln. Since this class is a subclass of MiscProcess, they should be able to run in foreground or background.
MiscFile
This class will be used to handle generic file I/O. Presumably it would encompass most/all of the standard file I/O commands (getchar, putchar, printf, read, write, etc). This would be a great class to clean up all the file I/O that a program might use, replacing it with a clean class that would also make it more portable. When OpenStep comes out on the Sun's, a MiscFile could be written for Sun's SysVish file I/O. This class would have several subclasses then: MiscSerial, MiscSocket, ... Each of these classes would just add whatever extra capabilities were needed for dealing with those types of file descriptors. MiscLogFile would be replaced by MiscFile.
MiscLockFile might also become a subclass of MiscFile.
MiscLogger (subclass MiscFile)
This class would be a a facility for printing 'log' message. Each message would have a priority level given to it when the print message is sent, and the class could be told what priority levels to print out. Ie: logLevel:(int)priority message:(const char *)format, ... If the current priority level is less than the one specified the message would or would not print, depending on how the class is designed. This class could be used for doing error/debugging output.
MiscMail
This would allow the creation of a mail message from within an application. Standard mail only.